package cn.hh.ymcc.constants;

/**
 *  异常枚举类
 */
public enum GlobalError {

    ERROR_EXCEPTION("5000","系统出错了,我们正在殴打程序员!!");

    // 错误码
    private String code;

    // 错误描述
    private String message;



    GlobalError(String code) {
        this.code = code;
    }

    GlobalError(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
